home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / test_scriptpackages.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  2KB  |  61 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import unittest
  5. import os
  6. import sys
  7. import tempfile
  8. from test import test_support
  9. import aetools
  10.  
  11. class TestScriptpackages(unittest.TestCase):
  12.     
  13.     def _test_scriptpackage(self, package, testobject = 1):
  14.         mod = __import__(package)
  15.         klass = getattr(mod, package)
  16.         talker = klass()
  17.         if testobject:
  18.             obj = mod.application(0)
  19.         
  20.  
  21.     
  22.     def test__builtinSuites(self):
  23.         self._test_scriptpackage('_builtinSuites', testobject = 0)
  24.  
  25.     
  26.     def test_StdSuites(self):
  27.         self._test_scriptpackage('StdSuites')
  28.  
  29.     
  30.     def test_SystemEvents(self):
  31.         self._test_scriptpackage('SystemEvents')
  32.  
  33.     
  34.     def test_Finder(self):
  35.         self._test_scriptpackage('Finder')
  36.  
  37.     
  38.     def test_Terminal(self):
  39.         self._test_scriptpackage('Terminal')
  40.  
  41.     
  42.     def test_Netscape(self):
  43.         self._test_scriptpackage('Netscape')
  44.  
  45.     
  46.     def test_Explorer(self):
  47.         self._test_scriptpackage('Explorer')
  48.  
  49.     
  50.     def test_CodeWarrior(self):
  51.         self._test_scriptpackage('CodeWarrior')
  52.  
  53.  
  54.  
  55. def test_main():
  56.     test_support.run_unittest(TestScriptpackages)
  57.  
  58. if __name__ == '__main__':
  59.     test_main()
  60.  
  61.